Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum





Refreshing uidoc with action button in embedded view
~Yentl Kireplopings 01/20/2004 03:21 PM
Domino Designer 6.0.2 CF2 Windows 2000


I have an embedded view with an action button that updates the selected docs in the view. Works fine. I would like to refresh the uidoc that contains the embeddedview after the selected docs are updated. I added a uidoc.refresh, but it crashes the Notes Client. Does anyone have any ideas on a work around.

Thanks
David

Sub Click(Source As Button)
Dim ws As New NotesUIWorkspace
Dim uiview As NotesUIView
Dim dc As NotesDocumentCollection
Dim doc As NotesDocument
Set uiview = ws.CurrentView
Set dc = uiview.Documents
Set doc = dc.GetFirstDocument
While Not (doc Is Nothing)

doc.status="Complete"
Call doc.save(False,True)
Set doc=dc.GetNextDocument(doc)
Wend
Call uiview.DeselectAll

Dim uidoc As notesuidocument
Set uidoc=ws.CurrentDocument
Call uidoc.Refresh

End Sub

Go back